package JDBC;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
//向数据库插入数据
public class Test2 {
    public static void main(String[] args) throws SQLException {
        Connection connectMysql = ConnectMysql.getConnectMysql();
        Statement statement = connectMysql.createStatement();
        String sql="insert into user values ('108','张三','kuang','11011319790131800','男',700,'北京');";
        int i = statement.executeUpdate(sql);
        System.out.println(i);
        statement.close();
        connectMysql.close();
    }
}
